package com.disapand.strongarmy

import cn.dev33.satoken.stp.*
import com.disapand.strongarmy.service.*
import org.junit.jupiter.api.*
import org.springframework.boot.test.context.*
import javax.annotation.*

/**
 *
 * @auth disapand
 * @date 2021/11/8 - 14:33 - 星期一
 *
 */
@SpringBootTest
class RoleTest {

    @Resource
    lateinit var roleService: RoleService

    @Test
    fun getMenus() {
        StpUtil.switchTo(1)
        roleService.getMenus(1).forEach(::println)
    }
}